package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.Company;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface CompanyDao extends AbstractDao<Company, Integer> {

	void saveCompany(Company company);

	List<Company> findCompanyies(String companyName);

	Company findCompany(String companyName , int companyId);

	List<Company> searchCompany(int sectorId);

	List<Company> searchCompany(int sectorId, String code);

	public Page<Company> searchCompany(int sectorId, String sectorName,
			String companyName, int companyId, GridPramDTO gridPramDTO);
}
